from django.contrib import admin
from .models import HotWord, CrawlerLog

@admin.register(HotWord)
class HotWordAdmin(admin.ModelAdmin):
    list_display = ['keyword', 'category', 'hot_value', 'similarity', 'created_at']
    list_filter = ['category', 'created_at']
    search_fields = ['keyword', 'category']
    readonly_fields = ['created_at', 'updated_at']

@admin.register(CrawlerLog)
class CrawlerLogAdmin(admin.ModelAdmin):
    list_display = ['status', 'message', 'created_at']
    list_filter = ['status', 'created_at']
    readonly_fields = ['created_at']